package com.yao.spider.zhihu.task;

import com.yao.spider.core.parser.DetailPageParser;
import com.yao.spider.zhihu.Page;
import com.yao.spider.zhihu.entity.User;
import com.yao.spider.zhihu.parser.ZhiHuUserDetailPageParser;
import com.yao.spider.zhihu.parser.ZhiHuUserListPageParser;
import org.apache.http.client.methods.HttpRequestBase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by 单耀 on 2018/1/1.
 * TODO y用户到
 */
@Deprecated
public class DetailPageTask extends AbstractPageTask{
    private static Logger logger = LoggerFactory.getLogger(DetailPageTask.class);
    private static DetailPageParser detailPageParser;


    public DetailPageTask(String url, boolean proxyFlag) {
        super(url, proxyFlag);
    }

    public void handle(Page page) {
        detailPageParser = ZhiHuUserDetailPageParser.getInstance();
        User user = detailPageParser.parseDetailPage(page);

    }

    public void retry() {

    }
}
